package com.ljx.recruitment.sale.controller;

import com.ljx.recruitment.common.domain.vo.resp.ApiResult;
import com.ljx.recruitment.sale.domain.vo.req.SmsSendReq;
import com.ljx.recruitment.sale.domain.vo.resp.SmsSendResp;
import com.ljx.recruitment.sale.service.SmsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2025-02-15  14:54
 */
@Api("短信接口")
@RestController
@RequestMapping("/sms")
public class SmsController {

    @Autowired
    private SmsService smsService;

    @ApiOperation("发送验证码")
    @PostMapping("/send")
    public ApiResult<SmsSendResp> sendSms(@RequestBody SmsSendReq req) {
        return ApiResult.success(smsService.sendSms(req));
    }
}
